package day12.hmoework20;

/**
 * 医生类
 */
public class Doctor extends Data implements Treat{
    public Doctor(){}
    public Doctor(String name,int level){
        super(name,level);
    }
    @Override
    public void treat() {
        System.out.println("我是" + this.getLevel() + "级的" +getName() + "我可以治疗");
    }
}
